/**
 * ...
 * @author 
 */

package scuts.ds;

class SetFactory 
{

    public static function intBased <T>(hash:T->Int, ?equals:T->T->Bool):Set<T> {
        return new DefaultSet(new IntHash(), hash, equals);
    }
    
    public static function stringBased <T>(hash:T->String, ?equals:T->T->Bool):Set<T> 
    {
        return new DefaultSet(new Hash(), hash, equals);
    }
    
}